package com.qianyu.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qianyu.project.mapper.provider.EmpProvider;
import com.qianyu.project.mapper.provider.ProviderInfoProvider;
import com.qianyu.project.web.controller.wyh.utils.Emp;
import com.qianyu.project.web.controller.wyh.utils.EmpBean;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
@Repository
public interface EmpMapper1 extends BaseMapper<Emp> {
    @Select("select id,dept_name as label,superiorid  from dept")
    List<EmpBean> getTreeNode();
    @SelectProvider(method = "WyhCreatedList",type = EmpProvider.class )
    IPage<Emp> WyhCreatedList(IPage<Emp> page,@Param("params") Map<String, String> params);
}
